var option2020pie = {
    title: {
        text: '2020代码删改统计图',
        left: 'center'
    },
    tooltip: {
        trigger: 'item'
    },
    legend: {
        orient: 'vertical',
        left: 'left',
    },
    series: [{
        name: '统计',
        type: 'pie',
        radius: '50%',
        data: [{
                "value": 77273,
                "name": "增加"
            },
            {
                "value": 34960,
                "name": "删除"
            },
            {
                "value": 42313,
                "name": "合计"
            }
        ],
        emphasis: {
            itemStyle: {
                shadowBlur: 10,
                shadowOffsetX: 0,
                shadowColor: 'rgba(0, 0, 0, 0.5)'
            }
        }
    }]
};


var chartDom = document.getElementById('2020pie');
var myChart = echarts.init(chartDom, 'dark');
option2020pie && myChart.setOption(option2020pie);